int outBoundary; int fps; int fpsChange; int thick; int R; int G; int B; int A; void setup() { //size(400600); fps=40; R=300; G=60; B=60; A=20; thick=0; fullScreen(); background(R,G,B); frameRate(fps); outBoundary = 300; } void draw() { if(mousePressed == true){ line(mouseX,mouseY,pmouseX,pmouseY); } if (thick < 1){ thick = 1; } //background(300,60,60,20); noStroke(); //fps= fps+fpsChange; frameRate(fps); fill(R,G,B,A); rect(0,0, width,height); stroke(random(0, 300)); strokeCap(SQUARE); strokeWeight(random(2+thick,20+thick)); } void keyPressed() { if (key == CODED) { if (keyCode == UP) { fps = fps+1; } else if (keyCode == DOWN) { fps = fps-1; } else if (keyCode == LEFT) { thick = thick-1; } else if (keyCode == RIGHT) { thick = thick+1; } } else { if(key == '1') { save("myimage.jpg"); } if(key == 'c') { background(R,G,B); } } if(key == 'a') { A = 200; } if(key == 's') { A = 20; } if(key == 'd') { A = 5; } }